package com.wen.common.pojo.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@TableName("cms_permission")
@Data
public class Permission extends BaseEntity {
    /**主键标识*/
    @TableId(type = IdType.AUTO)
    private Long id;

    /**父菜单ID*/
    private Long parentId;

    /**菜单名称*/
    private String menuName;

    /**路由地址*/
    private String path;

    /**组件路径*/
    private String component;

    /**图标*/
    private String icon;

    /**菜单类型（M目录 C菜单 F按钮）*/
    private String type;

    /**显示顺序*/
    private Integer orderNum;

    /**菜单状态（0正常 1停用）*/
    private String status;

    /**权限标识*/
    private String perms;

    /**元信息*/
    private String meta;

    @TableField(exist = false)
    private List<Permission> children;

}
